"use strict";
cc._RF.push(module, '1526dnDyMJAzqdXL3vgVdmJ', 'Ground');
// scripts/Ground.ts

Object.defineProperty(exports, "__esModule", { value: true });
var Model_1 = require("./Model");
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var Ground = /** @class */ (function (_super) {
    __extends(Ground, _super);
    function Ground() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Ground.prototype.onBeginContact = function (contact, selfCollider, otherCollider) {
        console.log("onBeginContact:", otherCollider.node.name, " ", selfCollider.node.name);
        console.log("onBeginContact", selfCollider.node.group, otherCollider.node.group);
        console.log("onBeginContact", selfCollider.node.groupIndex, otherCollider.node.groupIndex);
        Model_1.default.game.win = false;
        cc.director.loadScene('gameEnd');
    };
    Ground = __decorate([
        ccclass
    ], Ground);
    return Ground;
}(cc.Component));
exports.default = Ground;

cc._RF.pop();